package cn.soft863.users.service.impl;

import java.util.List;
import java.util.Map;

import cn.soft863.common.util.PageInfoUtil;
import cn.soft863.users.dao.IAAdminsDao;
import cn.soft863.users.dao.impl.AAdminsDaoImpl;
import cn.soft863.users.pojo.AAdmins;
import cn.soft863.users.service.IAdminsService;

/**
 * 用户Service的实现类
 * @author 902-B-Book
 *
 */
public class AdminsServiceImpl implements IAdminsService
{
	/**
	 * 持有Dao的接口,如何赋值
	 */
	private IAAdminsDao adminsDao = new AAdminsDaoImpl();
		
	@Override
	public int saveOneAdminsService(AAdmins admins)
	{
		return this.adminsDao.saveOneDao(admins);
	}

	@Override
	public List<AAdmins> findCondListAdminsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap)
	{
		return this.adminsDao.findCondListDao(pageInfoUtil,condMap);
	}

	@Override
	public AAdmins findOneAdminsService(Map<String, Object> condMap)
	{
		return this.adminsDao.findOneDao(condMap);
	}

	@Override
	public int updateOneAdminsService(AAdmins admins)
	{
		return this.adminsDao.updateOneDao(admins);
	}
}
